<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1>添加学生</h1>
<form action="StudentServlet" method="post">
    <label for="name">姓名：</label>
    <input type="text" id="name" name="name" required /><br>
    <label for="gender">性别：</label>
    <div id="gender" class="radio-group">
        <input type="radio" id="male" name="gender" value="男" checked />
        <label for="male">男</label>
        <input type="radio" id="female" name="gender" value="女" />
        <label for="female">女</label>
    </div>
    <label for="birthday">生日：</label>
    <input type="date" id="birthday" name="birthday" required /><br>
    <label for="clazz">班级：</label>
    <input type="text" id="clazz" name="clazz" required /><br>
    <input type="submit" value="添加学生" />
</form>
<br/>
</body>
</html>